package main;

import entity.Pet;
import factory.PetDaoFactory;
import service.PetService;
import service.impl.PetServiceImpl;

public class Main {
    public static void main(String[] args) {
        PetDaoFactory.defaultBeanName="petDaoOracleImpl";
        PetService petService = new PetServiceImpl();
        Pet pet = new Pet();
        pet.setName("马楼");
        petService.save(pet);
    }
}
